package test1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86131
 * Date: 2023-11-14
 * Time: 17:12
 */
public class GirlFriend {
    //属性
    private String name;  //变成私有
    private int age;
    private String gender;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    //行为
    public void sleep(){
        System.out.println("在睡觉");
    }

    public void eat(){
        System.out.println("在吃饭");
    }
}
